﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace WCFMINERP.InnerFactoryContracts.DataContracts
{
    [DataContract]
    public  class ProduceView
    {
        //[DataMember]
        // /// <summary>
        ///// 定单信息
        ///// </summary>
        //public Tb_OrderBag_Info Order { get; set; }

        //[DataMember]
        ///// <summary>
        ///// 产品信息
        ///// </summary>
        //public OrderInfo_Info Product { get; set; }


        //[DataMember]
        ///// <summary>
        ///// 工厂信息
        ///// </summary>
        //public OutProcessShop_Info Factory { get; set; }

        //[DataMember]
        ///// <summary>
        ///// 工厂加工信息
        ///// </summary>
        //public OutProcessRecord_Info ProduceInfo { set; get; }

        //[DataMember]
        ///// <summary>
        ///// 产品类型的基本信息
        ///// </summary>
        //public Tb_Product_Info ProductType { get; set; }


        //[DataMember]

        //public Tb_OutShop_ProductCategory_Info OutShop_ProductCategory { get; set; }

        /// <summary>
        /// Product.OrderPath; 
        /// </summary>
        [DataMember]
        public string OrderPath { get; set; }

        /// <summary>
        /// Order.OrderBagId
        /// </summary>
        [DataMember]
        public int OrderId { get; set; }

        /// <summary>
        /// Order.BagName;
        /// </summary>
        [DataMember]
        public string OrderName { get; set; }
  
        /// <summary>
        /// Order.BagCode;
        /// </summary>
        [DataMember]
        public string OrderBarcode{ get; set; }
       
        /// <summary>
        /// Order.ShopName;
        /// </summary>
        [DataMember]
        public string ShopName{ get; set; }
       

        /// <summary>
        /// Order.ShopID;
        /// </summary>
        [DataMember]
        public int ShopId{ get; set; }
       
        /// <summary>
        ///  Product.OrderProductId
        /// </summary>
        [DataMember]
        public int ProductId{ get; set; }
       
        /// <summary>
        ///  ProductType.ProductName
        /// </summary>
        [DataMember]
        public string tb_ProductName{ get; set; }
       
        /// <summary>
        /// Product.OrderProductName
        /// </summary>
        [DataMember]
        public string ProductName{ get; set; }
       
        /// <summary>
        /// Product.OrderProductCode
        /// </summary>
        [DataMember]
        public string ProductCode{ get; set; }
        
        /// <summary>
        /// Product.CtmName
        /// </summary>
        [DataMember]
        public string CtmName{ get; set; }
       

        /// <summary>
        /// Product.Width + "×" + Product.Height
        /// </summary>
        [DataMember]
        public string Size{ get; set; }
      
        /// <summary>
        /// Product.PageNum
        /// </summary>
        [DataMember]
        public int ProductNum{ get; set; }
       
        /// <summary>
        /// Product.Remark + ProduceInfo.OutRemark
        /// </summary>
        [DataMember]
        public string Remark{ get; set; }
       

        /// <summary>
        /// Factory.OutShopId
        /// </summary>
        [DataMember]
        public int FactoryId{ get; set; }
   
        /// <summary>
        /// Factory.OutShopName;
        /// </summary>
        [DataMember]
        public string FactoryName{ get; set; }
       
        /// <summary>
        /// ProduceInfo.OutProcessRecordId
        /// </summary>
        [DataMember]
        public int OutProcessRecordId{ get; set; }
       
        /// <summary>
        /// ProduceInfo.CreateTime;
        /// </summary>
        [DataMember]
        public DateTime CreateTime{ get; set; }
      
        /// <summary>
        /// ProduceInfo.StartProductTime
        /// </summary>
        [DataMember]
        public DateTime? StartProductTime{ get; set; }
        
        /// <summary>
        /// ProduceInfo.EndProductTime;
        /// </summary>
        [DataMember]
        public DateTime? EndProductTime{ get; set; }
        
        /// <summary>
        ///  ProduceInfo.Remark; 
        /// </summary>
        [DataMember]
        public string ProduceRemark{ get; set; }
      
        /// <summary>
        ///  ProduceInfo.Status
        /// </summary>
        [DataMember]
        public int IntStatus{ get; set; }
       
        /// <summary>
        /// ProduceInfo.Status2;
        /// </summary>
        [DataMember]
        public int IntStutas2{ get; set; }
      
        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public string Status { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public int TimeSpan{ get; set; }
       
        /// <summary>
        /// Product.PageNum;
        /// </summary>
        [DataMember]
        public int PageNum{ get; set; }
        
        /// <summary>
        /// StartProductTime.AddHours(TimeSpan)
        /// </summary>
        [DataMember]
        public DateTime PreCompleteDateTime{ get; set; }
      
        /// <summary>
        /// Order.FetchTime;
        /// </summary>
        [DataMember]
        public DateTime FacthTime{ get; set; }
       

    }
}
